import { ref } from 'vue'
import { defineStore } from 'pinia'

const key = 'print'
export const usePrintStore = defineStore(
  key,
  () => {
    const printList = ref<string[]>([])
    const selectedPrinter = ref('')
    const parperList = ref<string[]>([])
    const selectedParper = ref('')

    return { printList, parperList, selectedPrinter, selectedParper }
  },
  {
    persist: {
      key,
      storage: localStorage,
    },
  },
)
